<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title</title>
<script src="js/jquery-1.7.2.js" type="text/javascript"></script>
</head>
<body>
 
<h1 id="hh1"> 1 </h1>
<h1 id="hh2"> 2 </h1>
<h1 id="hh3"> 3 </h1>
 
<p><a href="#" id="dl1">Move div below 1 </a></p>
<p><a href="#" id="dl2">Move div below 2 </a></p>
<p><a href="#" id="dl3">Move div below 3 </a></p>
 
<div id="downloadForm"><h2><a href="#" id="hello">Hello World</a></h2></div>
 
<script type="text/javascript">
 
$(document).ready(function(){
	$('#dl1').click(function() { $('div#downloadForm').remove().insertAfter('h1#hh1');  });
	$('#dl2').click(function() { $('div#downloadForm').remove().insertAfter('h1#hh2');  });
	$('#dl3').click(function() { $('div#downloadForm').remove().insertAfter('h1#hh3');  });
 
	$('#hello').click(function() { alert('Hello World');  });	
});
 
</script>
 
</body>
</html>